package com.plian.system.entity.pf;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @Author: Take-off
 * @Description: TODO
 * @Date: 2023/1/9 11:18 AM
 * @Version: 1.0
 **/

@Data
@TableName("pf_business_indicators_old")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BusinessIndicatorsOld 对象", description = "BusinessIndicatorsOld")
public class BusinessIndicatorsOld extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主表id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主表id")
    private Long baseBusinessIndicatorsId;

    /**
     * 指标类型
     */
    @ApiModelProperty(value = "指标类型")
    private String indicatorsCategoryId;

    /**
     * 指标权重
     */
    @TableField(value = "indicators_weight", updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value = "指标权重")
    private BigDecimal indicatorsWeight;

    /**
     * 基准值
     */
    @TableField(value = "baseline", updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value = "基准值")
    private BigDecimal baseline;

    /**
     * (对标)目标值
     */
    @TableField(value = "target", updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value = "(对标)目标值")
    private BigDecimal target;

    /**
     * 基本目标值
     */
    @TableField(value = "basic_target",updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value = "基本目标值")
    private BigDecimal basicTarget;
}
